﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using apbmvc.companys.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace apbmvc.companys
{
    public interface ICompanyAppService: IApplicationService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<companyDto>> GetCompanies();

        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="dto">参数</param>
        /// <returns></returns>
        Task Addcompany(companyDto dto);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        Task Delcompany(int id);

        /// <summary>
        /// 执行sql
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        List<companyDto> GetTsAsync(string sql);

        /// <summary>
        /// 执行测试作业
        /// </summary>
        void ExTestJob();

        /// <summary>
        /// 获取已经缓存的实体
        /// </summary>
        /// <returns></returns>
        string GetCacheCompaniesList();
    }
}
